import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "./registerServiceWorker";
import Vant from 'vant';
import 'vant/lib/index.css';
import 'lib-flexible';
import './assets/js/common'
import wxConfig from './assets/js/wxConfig'

Vue.prototype.$wxConfig=wxConfig

Vue.use(Vant);

Vue.config.productionTip = false;

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount("#app");

router.beforeEach((to, from, next) => {
    /* 路由发生变化修改页面title */
    if (to.meta.title) {
        document.title = to.meta.title
    }
    next()
})
